<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="header.jsp"%>
	<style>
	.addAccount .form_block {
	    width: 100%;
	}
	.addAccount .form_block .from_group label {
	    width: 36%;
	    padding-right: 120px;
	}
	.addAccount .form_block .from_group .form_control {
   		width: 35%;
	}
	</style>
		
	    <div class="flex-container">
			<%@ include file="leftmenu.jsp"%>
			<div class="right-container right_container_content" style="overflow-y: scroll;">
			    <div class="right_content right_content_main" style="height:auto;">
			    	<div class="header header_line">
			    		<h6>载体上报明细</h6>
			    	</div>
			    	<div class="addAccount">
			    	    <div class="form_block">
			    	    	<form id="add_form">
			    	    		<div class="from_group">
			    	    			<label>月份</label>
			    	    			<input class="form_control" name="month" type="text" readonly="readonly" value="${carrierReport.month }" />
							     </div>
			    	    		<div class="from_group">
			    	    			<label>载体名称</label>
			    	    			<input class="form_control" name="address" type="text" readonly="readonly" value="${carrierReport.carrierName }" />
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>地址</label>
			    	    			<input class="form_control" name="address" type="text" readonly="readonly" value="${carrierReport.address }" />
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>状态</label>
			    	    			<input class="form_control" name="address" type="text" readonly="readonly" value="${carrierReport.status }" />
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>运营单位</label>
			    	    			<input class="form_control" name="organization" type="text" readonly="readonly" value="${carrierReport.organization }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>负责人</label>
			    	    			<input class="form_control" name="master" type="text" readonly="readonly" value="${carrierReport.master }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>联系方式</label>
			    	    			<input class="form_control" name="contact" type="text" readonly="readonly" value="${carrierReport.contact }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>总面积</label>
			    	    			<input class="form_control " name="acreage" type="text" readonly="readonly" value="${carrierReport.acreage }" />
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>企业或团队数量</label>
			    	    			<input class="form_control" name="teamNumber" type="text" readonly="readonly" value="${carrierReport.teamNumber }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>企业或团队总人数</label>
			    	    			<input class="form_control" name="teamEmployees" type="text" readonly="readonly" value="${carrierReport.teamEmployees }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>企业或团队已使用面积</label>
			    	    			<input class="form_control" name="teamAcreage" type="text" readonly="readonly" value="${carrierReport.teamAcreage }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>未入驻面积</label>
			    	    			<input class="form_control" name="acreageNotAdmitted" type="text" readonly="readonly" value="${carrierReport.acreageNotAdmitted }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>主要产业</label>
			    	    			<input class="form_control" name="majorIndustries" type="text" readonly="readonly" value="${carrierReport.majorIndustries }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>建设内容</label>
			    	    			<input class="form_control" name="constructionContent" type="text" readonly="readonly" value="${carrierReport.constructionContent }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>完成时间</label>
			    	    			<input class="form_control" name="completeTime" type="text" readonly="readonly" value="${carrierReport.completeTime }" />
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>投资额</label>
			    	    			<input class="form_control" name="investmentAmount" type="text" readonly="readonly" value="${carrierReport.investmentAmount }" />
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月增加面积</label>
			    	    			<input class="form_control" name="acreageMonthIncreased" type="text" readonly="readonly" value="${carrierReport.acreageMonthIncreased }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月增加企业</label>
			    	    			<input class="form_control" name="companyMonthIncreased" type="text" readonly="readonly" value="${carrierReport.companyMonthIncreased }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>运营人员数量</label>
			    	    			<input class="form_control" name="operatorNumber" type="text" readonly="readonly" value="${carrierReport.operatorNumber }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>兼职创业导师数量</label>
			    	    			<input class="form_control" name="partTimeMentorNumber" type="text" readonly="readonly" value="${carrierReport.partTimeMentorNumber }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>创业投资基金额度</label>
			    	    			<input class="form_control" name="investmentFund" type="text" readonly="readonly" value="${carrierReport.investmentFund }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月新增企业团队数量</label>
			    	    			<input class="form_control" name="companyMonthIncubated" type="text" readonly="readonly" value="${carrierReport.companyMonthIncubated }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月在孵团队注册为企业数量</label>
			    	    			<input class="form_control" name="teamRegisteredCompany" type="text" readonly="readonly" value="${carrierReport.teamRegisteredCompany }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月毕业企业数量</label>
			    	    			<input class="form_control" name="teamMonthGraduated" type="text" readonly="readonly" value="${carrierReport.teamMonthGraduated }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>上市挂牌企业数量</label>
			    	    			<input class="form_control" name="listedCompanyNumber" type="text" readonly="readonly" value="${carrierReport.listedCompanyNumber }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>吸纳就业总人数</label>
			    	    			<input class="form_control" name="bringEmploymentNumber" type="text" readonly="readonly" value="${carrierReport.bringEmploymentNumber }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月企业团队专利申请量</label>
			    	    			<input class="form_control" name="patentMonthApplication" type="text" readonly="readonly" value="${carrierReport.patentMonthApplication }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月企业团队专利授权量</label>
			    	    			<input class="form_control" name="patentMonthAuthorized" type="text" readonly="readonly" value="${carrierReport.patentMonthAuthorized }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>发明专利申请量</label>
			    	    			<input class="form_control" name="inventionPatentMonthApplication" type="text" readonly="readonly" value="${carrierReport.inventionPatentMonthApplication }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>发明专利授权量</label>
			    	    			<input class="form_control" name="inventionPatentMonthAuthorized" type="text" readonly="readonly" value="${carrierReport.inventionPatentMonthAuthorized }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>实用新型专利申请量</label>
			    	    			<input class="form_control" name="utilityPatentMonthApplication" type="text" readonly="readonly" value="${carrierReport.utilityPatentMonthApplication }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>实用新型专利授权量</label>
			    	    			<input class="form_control" name="utilityPatentMonthAuthorized" type="text" readonly="readonly" value="${carrierReport.utilityPatentMonthAuthorized }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>外观设计专利申请量</label>
			    	    			<input class="form_control" name="designPatentMonthApplication" type="text" readonly="readonly" value="${carrierReport.designPatentMonthApplication }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>外观设计专利授权量</label>
			    	    			<input class="form_control" name="designPatentMonthAuthorized" type="text" readonly="readonly" value="${carrierReport.designPatentMonthAuthorized }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月入孵企业、团队融资额</label>
			    	    			<input class="form_control" name="teamFinancing" type="text" readonly="readonly" value="${carrierReport.teamFinancing }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月创新创业活动开展次数</label>
			    	    			<input class="form_control" name="innovationActivityCount" type="text" readonly="readonly" value="${carrierReport.innovationActivityCount }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月创新创业教育类活动开展次数</label>
			    	    			<input class="form_control" name="innovationEducationalActivityCount" type="text" readonly="readonly" value="${carrierReport.innovationEducationalActivityCount }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月创业国际交流活动开展次数</label>
			    	    			<input class="form_control" name="internationalActivitiesCount" type="text" readonly="readonly" value="${carrierReport.internationalActivitiesCount }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月总收入</label>
			    	    			<input class="form_control" name="income" type="text" readonly="readonly" value="${carrierReport.income }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>本月总支出</label>
			    	    			<input class="form_control" name="expenditure" type="text" readonly="readonly" value="${carrierReport.expenditure }"/>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>是否国家级众创空间（孵化器）</label>
			    	    			
			    	    			<select class="form_control" name="isNationalMakerspace" disabled="disabled">
			    	    			<option <c:if test="${carrierReport.isNationalMakerspace }">selected="selected"</c:if> value="1">是</option>
			    	    			<option <c:if test="${not carrierReport.isNationalMakerspace }">selected="selected"</c:if> value="0">否</option>
			    	    			</select>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>是否省级众创空间（孵化器）</label>
			    	    			<select class="form_control" name="isProvincialMakerspace" disabled="disabled">
			    	    			<option <c:if test="${carrierReport.isProvincialMakerspace }">selected="selected"</c:if> value="1">是</option>
			    	    			<option <c:if test="${not carrierReport.isProvincialMakerspace }">selected="selected"</c:if> value="0">否</option>
			    	    			</select>
			    	    		</div>
			    	    		<div class="from_group">
			    	    			<label>是否区县开发区级众创空间（孵化器）</label>
			    	    			<select class="form_control" name="isCountyMakerspace" disabled="disabled">
			    	    			<option <c:if test="${carrierReport.isCountyMakerspace }">selected="selected"</c:if> value="1">是</option>
			    	    			<option <c:if test="${not carrierReport.isCountyMakerspace }">selected="selected"</c:if> value="0">否</option>
			    	    			</select>
			    	    		</div>
			    	    		<div class="from_group" style="margin-bottom: 150px;">
			    	    			<label>&nbsp;&nbsp;&nbsp;</label>
			    	    		</div>
			    	    		
			    	    	</form>
			    	    </div>
			        </div>
			    </div>
			   
			</div>
		</div>
	<script>
		
		
		$("#form_submit").click(function() {
			$.ajax({  
			    type: "POST",  
			    url:"<%=path%>/carrierReport/save",  
			    data:$('#add_form').serialize(),  
			    async: false,  
			    error: function(request) {  
			        alert("系统异常！");  
			    },  
			    success: function(data) {  
			        //接收后台返回的结果  
			    	alert('增加成功！');
					window.location.href="<%=path %>/carrierReport/list"; 
			    }  
			  });
		});
		
		function checkFloatNumber(id, field){
			var sid = "#" + id;
			var val = $(sid).val();
			var r = /^\d+(\.\d{0,2})?$|^\.\d{1,2}$/.test(val);
			if(!r){
				alert(field + "格式不正确，请重新输入！");
				return;
			}
		}
		
		function checkIntNumber(id, field){
			var sid = "#" + id;
			var val = $(sid).val();
			var r = /^([1-9]\d*|[0]{1,1})$/.test(val);
			if(!r){
				alert(field + "格式不正确，请重新输入！");
				return;
			}
		}
		
		function  selectCarrier() {
			var selectText=$("#carrier_select").find("option:selected").text();
			$("#carrierName").attr("value", selectText)
		}
		
		$(".form_date").datetimepicker({
			format:'yyyy-mm', 
	        language:  'zh-CN',
	        weekStart: 1,
	        todayBtn:  1,
			autoclose: 1,
			todayHighlight: 1,
			startView: 3,
			minView: 3,
			forceParse: 0
		    });
		
		$(".form_datetime").datetimepicker({
			format:'yyyy-mm-dd', 
	        language:  'zh-CN',
	        weekStart: 1,
	        todayBtn:  1,
			autoclose: 1,
			todayHighlight: 1,
			startView: 2,
			minView: 2,
			forceParse: 0
		    });
		
	</script>
